package com.aar.rest.graphics;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Label;

import javax.swing.JFrame;

public class Window extends JFrame{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Core Core;
	private Label footerLabel;
	public Window(){
		this.setTitle("Projet AAR - 2013");
		this.setSize(600, 400);
		this.setMinimumSize(new Dimension(600,460));
		BorderLayout layout = new BorderLayout();
		this.setLayout(layout);
		this.setResizable(true);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setLocationRelativeTo(null);
		this.setJMenuBar(new Menu(this));
		footerLabel = new Label("2013 - Tous droits réservés");
		footerLabel.setAlignment(1);
		this.add(footerLabel,BorderLayout.SOUTH);
		Core = new Core(this);
		this.add(Core);
		this.setVisible(true);   	
	}

	public Core getCore() {
		return Core;
	}

	public void setCore(Core Core) {
		this.Core = Core;
	}
}
